package com.Interlend.interfaces.User;

/**
 * 读者按用户信息查询借阅历史
 */
public interface UserGetHistory {
	/**
	 * @param id 用户id
	 * @return json 字符串
	 *         若 输入参数有误 {exception: 1,history: []}
	 * 		        若 数据库异常 {exception: 2,history: []}
	 * 		        若 其他错误{exception: 3,history: []} 
	 *         若程序正常{exception: 0,history: [
	 *         		{username: ,bid , ISBN, from , to , state},
	 *         		{username: ,bid , ISBN, from , to , state}
	 *         ]}
	 *         username：用户名
	 *         bid：书id
	 *         ISBN：书ISBN
	 *         from: 借出馆名称
	 *         to: 借入馆名称
	 */
	String execute(int id);
}
